package com.plum.admin.config.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author 子丶沫
 * @version 1.0
 * @date 2021/9/28 9:47
 */
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "plum.iplimit")
public class IpLimitProperties {
    /**
     * 是否开启ip限流
     */
    private boolean enable;
    /**
     * 限流时长 毫秒
     */
    private Long timeout;
    /**
     * 限流数量
     */
    private Long limit;
}
